export default [
    {
        path:'/',
        name:'layout',
        component:()=>import('@/views/layout/layout.vue'),
        children:[
            {
                path:'',
                name:'index',
                // redirect:'article',
                component:()=>import('@/views/layout/index.vue'),
            },
            {
                path:'article',
                name:'article',
                component:()=>import('@/views/article/articleList.vue'),
                children:[
                    { path:':tagId', name:'article' },
                    { path:':tagId/:page', name:'article' },
                ]
            },
            {
                path:'tag',
                name:'tag',
                component:()=>import('@/views/article/tagList.vue'),
            },
            {
                path:'detail/:articleId',
                name:'articleDetail',
                component:()=>import('@/views/article/articleDetail.vue'),
            },
            {
                path:'login',
                name:'login',
                component:()=>import('@/views/user/login.vue'),
            },
            {
                path:'reg',
                name:'reg',
                component:()=>import('@/views/user/reg.vue'),
            },
            {
                path:'userEdit',
                name:'userEdit',
                meta:{
                    checked:true
                },
                component:()=>import('@/views/user/userEdit.vue'),
            },
            {
                path:'about',
                name:'about',
                component:()=>import('@/views/layout/about.vue'),
            },
            {
                path:'version',
                name:'version',
                component:()=>import('@/views/layout/version.vue'),
            },
            // {
            //     path:'chatroom',
            //     name:'chatroom',
            //     component:()=>import('@/views/layout/chatRoom.vue'),
            // },
        ]
    },
    {
        path:'/tools',
        name:'tools',
        component:()=>import('@/views/layout/tools.vue'),
    },
]
